package com.travel.admin.constants;

public enum MenuShow {
	SHOW("0","显示"),
	HIDE("1","隐藏");
	private String code;
	private String name;
	private MenuShow(String code,String name){
		this.code = code;
		this.name = name;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public static String getName(String code){
		for (MenuShow value : MenuShow.values()) {
            if (value.getCode().equals(code)) {
                return value.name;
            }
        }
		return null;
	}
}
